.class public final Lnbisdk/go;
.super Ljava/lang/Object;


# static fields
.field private static final jv:[D


# instance fields
.field private jA:D

.field private jr:[I

.field private js:[I

.field private jt:[I

.field private ju:[D

.field private jw:I

.field private jx:D

.field private jy:D

.field private jz:D


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x1

    new-array v0, v0, [D

    sput-object v0, Lnbisdk/go;->jv:[D

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    invoke-direct {p0}, Lnbisdk/go;->A()V

    return-void
.end method

.method public constructor <init>([B)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    invoke-direct {p0}, Lnbisdk/go;->A()V

    if-eqz p1, :cond_0

    invoke-direct {p0, p1}, Lnbisdk/go;->j([B)V

    :cond_0
    return-void
.end method

.method private A()V
    .locals 3

    const-wide v1, -0x3f70c80000000000L

    const/4 v0, 0x0

    iput v0, p0, Lnbisdk/go;->jw:I

    iput-wide v1, p0, Lnbisdk/go;->jx:D

    iput-wide v1, p0, Lnbisdk/go;->jy:D

    iput-wide v1, p0, Lnbisdk/go;->jz:D

    iput-wide v1, p0, Lnbisdk/go;->jA:D

    return-void
.end method

.method private static d(D)I
    .locals 4

    const-wide/16 v0, 0x0

    cmpg-double v0, p0, v0

    if-gez v0, :cond_2

    neg-double v0, p0

    :goto_0
    const-wide/high16 v2, 0x4049

    cmpg-double v2, v0, v2

    if-gez v2, :cond_0

    const/4 v0, 0x1

    :goto_1
    return v0

    :cond_0
    const-wide v2, 0x4052c00000000000L

    cmpg-double v0, v0, v2

    if-gez v0, :cond_1

    const/4 v0, 0x2

    goto :goto_1

    :cond_1
    const/4 v0, 0x3

    goto :goto_1

    :cond_2
    move-wide v0, p0

    goto :goto_0
.end method

.method private j([B)V
    .locals 21

    move-object/from16 v0, p1

    array-length v0, v0

    move v3, v0

    const/4 v4, 0x1

    sub-int/2addr v3, v4

    aget-byte v3, p1, v3

    shr-int/lit8 v12, v3, 0x4

    const/4 v3, 0x2

    if-eq v12, v3, :cond_0

    const/4 v3, 0x4

    if-eq v12, v3, :cond_0

    new-instance v3, Ljava/lang/IllegalArgumentException;

    const-string v4, "Width is invalid"

    invoke-direct {v3, v4}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v3

    :cond_0
    move-object/from16 v0, p1

    array-length v0, v0

    move v3, v0

    const/4 v4, 0x1

    sub-int/2addr v3, v4

    const/16 v4, 0x8

    sub-int/2addr v3, v4

    shl-int/lit8 v4, v12, 0x1

    div-int/2addr v3, v4

    add-int/lit8 v13, v3, 0x1

    move v0, v13

    move-object/from16 v1, p0

    iput v0, v1, Lnbisdk/go;->jw:I

    new-array v3, v13, [I

    move-object v0, v3

    move-object/from16 v1, p0

    iput-object v0, v1, Lnbisdk/go;->jr:[I

    new-array v3, v13, [I

    move-object v0, v3

    move-object/from16 v1, p0

    iput-object v0, v1, Lnbisdk/go;->js:[I

    new-array v3, v13, [I

    move-object v0, v3

    move-object/from16 v1, p0

    iput-object v0, v1, Lnbisdk/go;->jt:[I

    new-array v3, v13, [D

    move-object v0, v3

    move-object/from16 v1, p0

    iput-object v0, v1, Lnbisdk/go;->ju:[D

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/go;->jr:[I

    move-object v3, v0

    const/4 v4, 0x0

    const/4 v5, 0x0

    move-object/from16 v0, p1

    move v1, v5

    invoke-static {v0, v1}, Lnbisdk/ah;->b([BI)I

    move-result v5

    aput v5, v3, v4

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/go;->js:[I

    move-object v3, v0

    const/4 v4, 0x0

    const/4 v5, 0x4

    move-object/from16 v0, p1

    move v1, v5

    invoke-static {v0, v1}, Lnbisdk/ah;->b([BI)I

    move-result v5

    aput v5, v3, v4

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/go;->jt:[I

    move-object v3, v0

    const/4 v4, 0x0

    const/4 v5, 0x0

    aput v5, v3, v4

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/go;->ju:[D

    move-object v3, v0

    const/4 v4, 0x0

    const-wide v5, -0x3f70c80000000000L

    aput-wide v5, v3, v4

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/go;->jr:[I

    move-object v3, v0

    const/4 v4, 0x0

    aget v3, v3, v4

    int-to-double v3, v3

    const-wide v5, 0x4106c16c147ae148L

    div-double/2addr v3, v5

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/go;->js:[I

    move-object v5, v0

    const/4 v6, 0x0

    aget v5, v5, v6

    int-to-double v5, v5

    const-wide v7, 0x4106c16c147ae148L

    div-double/2addr v5, v7

    move-wide v0, v3

    move-object/from16 v2, p0

    iput-wide v0, v2, Lnbisdk/go;->jx:D

    move-wide v0, v3

    move-object/from16 v2, p0

    iput-wide v0, v2, Lnbisdk/go;->jz:D

    move-wide v0, v5

    move-object/from16 v2, p0

    iput-wide v0, v2, Lnbisdk/go;->jy:D

    move-wide v0, v5

    move-object/from16 v2, p0

    iput-wide v0, v2, Lnbisdk/go;->jA:D

    const/16 v7, 0x8

    const/4 v8, 0x2

    if-ne v12, v8, :cond_5

    const/4 v8, 0x2

    move v14, v8

    :goto_0
    const/4 v8, 0x1

    move v15, v8

    :goto_1
    if-ge v15, v13, :cond_8

    const/4 v8, 0x2

    if-ne v12, v8, :cond_6

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/go;->jr:[I

    move-object v8, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/go;->jr:[I

    move-object v9, v0

    const/4 v10, 0x1

    sub-int v10, v15, v10

    aget v9, v9, v10

    move-object/from16 v0, p1

    move v1, v7

    invoke-static {v0, v1}, Lnbisdk/ah;->a([BI)S

    move-result v10

    add-int/2addr v9, v10

    aput v9, v8, v15

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/go;->js:[I

    move-object v8, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/go;->js:[I

    move-object v9, v0

    const/4 v10, 0x1

    sub-int v10, v15, v10

    aget v9, v9, v10

    add-int v10, v7, v14

    move-object/from16 v0, p1

    move v1, v10

    invoke-static {v0, v1}, Lnbisdk/ah;->a([BI)S

    move-result v10

    add-int/2addr v9, v10

    aput v9, v8, v15

    :goto_2
    shl-int/lit8 v8, v14, 0x1

    add-int v16, v7, v8

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/go;->jr:[I

    move-object v7, v0

    aget v7, v7, v15

    int-to-double v7, v7

    const-wide v9, 0x4106c16c147ae148L

    div-double/2addr v7, v9

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/go;->js:[I

    move-object v9, v0

    aget v9, v9, v15

    int-to-double v9, v9

    const-wide v17, 0x4106c16c147ae148L

    div-double v9, v9, v17

    move-object/from16 v0, p0

    iget-wide v0, v0, Lnbisdk/go;->jx:D

    move-wide/from16 v17, v0

    cmpg-double v11, v7, v17

    if-gez v11, :cond_1

    move-wide v0, v7

    move-object/from16 v2, p0

    iput-wide v0, v2, Lnbisdk/go;->jx:D

    :cond_1
    move-object/from16 v0, p0

    iget-wide v0, v0, Lnbisdk/go;->jz:D

    move-wide/from16 v17, v0

    cmpl-double v11, v7, v17

    if-lez v11, :cond_2

    move-wide v0, v7

    move-object/from16 v2, p0

    iput-wide v0, v2, Lnbisdk/go;->jz:D

    :cond_2
    move-object/from16 v0, p0

    iget-wide v0, v0, Lnbisdk/go;->jy:D

    move-wide/from16 v17, v0

    cmpg-double v11, v9, v17

    if-gez v11, :cond_3

    move-wide v0, v9

    move-object/from16 v2, p0

    iput-wide v0, v2, Lnbisdk/go;->jy:D

    :cond_3
    move-object/from16 v0, p0

    iget-wide v0, v0, Lnbisdk/go;->jA:D

    move-wide/from16 v17, v0

    cmpl-double v11, v9, v17

    if-lez v11, :cond_4

    move-wide v0, v9

    move-object/from16 v2, p0

    iput-wide v0, v2, Lnbisdk/go;->jA:D

    :cond_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/go;->jt:[I

    move-object/from16 v17, v0

    const/4 v11, 0x1

    sub-int v18, v15, v11

    const-wide/high16 v19, 0x4024

    sget-object v11, Lnbisdk/go;->jv:[D

    invoke-static/range {v3 .. v11}, Lnbisdk/kv;->a(DDDD[D)D

    move-result-wide v3

    mul-double v3, v3, v19

    double-to-int v3, v3

    aput v3, v17, v18

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/go;->ju:[D

    move-object v3, v0

    const/4 v4, 0x1

    sub-int v4, v15, v4

    sget-object v5, Lnbisdk/go;->jv:[D

    const/4 v6, 0x0

    aget-wide v5, v5, v6

    aput-wide v5, v3, v4

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/go;->ju:[D

    move-object v3, v0

    const-wide v4, -0x3f70c80000000000L

    aput-wide v4, v3, v15

    add-int/lit8 v3, v15, 0x1

    move v15, v3

    move-wide v5, v9

    move-wide v3, v7

    move/from16 v7, v16

    goto/16 :goto_1

    :cond_5
    const/4 v8, 0x4

    move v14, v8

    goto/16 :goto_0

    :cond_6
    const/4 v8, 0x4

    if-ne v12, v8, :cond_7

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/go;->jr:[I

    move-object v8, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/go;->jr:[I

    move-object v9, v0

    const/4 v10, 0x1

    sub-int v10, v15, v10

    aget v9, v9, v10

    move-object/from16 v0, p1

    move v1, v7

    invoke-static {v0, v1}, Lnbisdk/ah;->b([BI)I

    move-result v10

    add-int/2addr v9, v10

    aput v9, v8, v15

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/go;->js:[I

    move-object v8, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/go;->js:[I

    move-object v9, v0

    const/4 v10, 0x1

    sub-int v10, v15, v10

    aget v9, v9, v10

    add-int v10, v7, v14

    move-object/from16 v0, p1

    move v1, v10

    invoke-static {v0, v1}, Lnbisdk/ah;->b([BI)I

    move-result v10

    add-int/2addr v9, v10

    aput v9, v8, v15

    goto/16 :goto_2

    :cond_7
    new-instance v3, Ljava/lang/IllegalArgumentException;

    const-string v4, "Width is invald"

    invoke-direct {v3, v4}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v3

    :cond_8
    return-void
.end method


# virtual methods
.method public final a(DDD)Z
    .locals 6

    const/4 v5, 0x0

    invoke-static {p1, p2}, Lnbisdk/go;->d(D)I

    move-result v0

    iget v1, p0, Lnbisdk/go;->jw:I

    if-nez v1, :cond_0

    move v0, v5

    :goto_0
    return v0

    :cond_0
    iget-wide v1, p0, Lnbisdk/go;->jx:D

    sub-double/2addr v1, p5

    cmpg-double v1, p1, v1

    if-gez v1, :cond_1

    move v0, v5

    goto :goto_0

    :cond_1
    iget-wide v1, p0, Lnbisdk/go;->jz:D

    add-double/2addr v1, p5

    cmpl-double v1, p1, v1

    if-lez v1, :cond_2

    move v0, v5

    goto :goto_0

    :cond_2
    iget-wide v1, p0, Lnbisdk/go;->jy:D

    int-to-double v3, v0

    mul-double/2addr v3, p5

    sub-double/2addr v1, v3

    cmpg-double v1, p3, v1

    if-gez v1, :cond_3

    move v0, v5

    goto :goto_0

    :cond_3
    iget-wide v1, p0, Lnbisdk/go;->jA:D

    int-to-double v3, v0

    mul-double/2addr v3, p5

    add-double v0, v1, v3

    cmpl-double v0, p3, v0

    if-lez v0, :cond_4

    move v0, v5

    goto :goto_0

    :cond_4
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public final a(IDDD)Z
    .locals 10

    invoke-static {p2, p3}, Lnbisdk/go;->d(D)I

    move-result v0

    add-int/lit8 v1, p1, 0x1

    iget v2, p0, Lnbisdk/go;->jw:I

    if-lt v1, v2, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    const-wide v1, 0x4106c16c147ae148L

    mul-double v1, v1, p6

    double-to-int v1, v1

    const-wide v2, 0x4106c16c147ae148L

    mul-double/2addr v2, p2

    double-to-int v2, v2

    const-wide v3, 0x4106c16c147ae148L

    mul-double/2addr v3, p4

    double-to-int v3, v3

    iget-object v4, p0, Lnbisdk/go;->jr:[I

    aget v4, v4, p1

    iget-object v5, p0, Lnbisdk/go;->jr:[I

    add-int/lit8 v6, p1, 0x1

    aget v5, v5, v6

    invoke-static {v4, v5}, Ljava/lang/Math;->min(II)I

    move-result v4

    iget-object v5, p0, Lnbisdk/go;->jr:[I

    aget v5, v5, p1

    iget-object v6, p0, Lnbisdk/go;->jr:[I

    add-int/lit8 v7, p1, 0x1

    aget v6, v6, v7

    invoke-static {v5, v6}, Ljava/lang/Math;->max(II)I

    move-result v5

    iget-object v6, p0, Lnbisdk/go;->js:[I

    aget v6, v6, p1

    iget-object v7, p0, Lnbisdk/go;->js:[I

    add-int/lit8 v8, p1, 0x1

    aget v7, v7, v8

    invoke-static {v6, v7}, Ljava/lang/Math;->min(II)I

    move-result v6

    iget-object v7, p0, Lnbisdk/go;->js:[I

    aget v7, v7, p1

    iget-object v8, p0, Lnbisdk/go;->js:[I

    add-int/lit8 v9, p1, 0x1

    aget v8, v8, v9

    invoke-static {v7, v8}, Ljava/lang/Math;->max(II)I

    move-result v7

    sub-int/2addr v4, v1

    if-ge v2, v4, :cond_1

    const/4 v0, 0x0

    goto :goto_0

    :cond_1
    add-int v4, v5, v1

    if-le v2, v4, :cond_2

    const/4 v0, 0x0

    goto :goto_0

    :cond_2
    mul-int v2, v1, v0

    sub-int v2, v6, v2

    if-ge v3, v2, :cond_3

    const/4 v0, 0x0

    goto :goto_0

    :cond_3
    mul-int/2addr v0, v1

    add-int/2addr v0, v7

    if-le v3, v0, :cond_4

    const/4 v0, 0x0

    goto :goto_0

    :cond_4
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public final a(I[D[D[D[D)Z
    .locals 7

    const-wide v5, 0x4106c16c147ae148L

    const-wide v1, -0x3f70c80000000000L

    const/4 v4, 0x0

    iget v0, p0, Lnbisdk/go;->jw:I

    if-lt p1, v0, :cond_3

    if-eqz p3, :cond_0

    aput-wide v1, p3, v4

    :cond_0
    if-eqz p2, :cond_1

    aput-wide v1, p2, v4

    :cond_1
    if-eqz p4, :cond_2

    const-wide/16 v0, 0x0

    aput-wide v0, p4, v4

    :cond_2
    move v0, v4

    :goto_0
    return v0

    :cond_3
    if-eqz p2, :cond_4

    if-eqz p3, :cond_4

    iget-object v0, p0, Lnbisdk/go;->jr:[I

    aget v0, v0, p1

    iget-object v1, p0, Lnbisdk/go;->js:[I

    aget v1, v1, p1

    int-to-double v2, v0

    div-double/2addr v2, v5

    aput-wide v2, p2, v4

    int-to-double v0, v1

    div-double/2addr v0, v5

    aput-wide v0, p3, v4

    :cond_4
    if-eqz p4, :cond_5

    iget-object v0, p0, Lnbisdk/go;->jt:[I

    aget v0, v0, p1

    int-to-double v0, v0

    const-wide/high16 v2, 0x4024

    div-double/2addr v0, v2

    aput-wide v0, p4, v4

    :cond_5
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public final aa(I)D
    .locals 4

    iget-object v0, p0, Lnbisdk/go;->jr:[I

    const/4 v1, 0x0

    aget v0, v0, v1

    int-to-double v0, v0

    const-wide v2, 0x4106c16c147ae148L

    div-double/2addr v0, v2

    return-wide v0
.end method

.method public final ab(I)D
    .locals 4

    iget-object v0, p0, Lnbisdk/go;->js:[I

    const/4 v1, 0x0

    aget v0, v0, v1

    int-to-double v0, v0

    const-wide v2, 0x4106c16c147ae148L

    div-double/2addr v0, v2

    return-wide v0
.end method

.method public final fl()I
    .locals 1

    iget v0, p0, Lnbisdk/go;->jw:I

    return v0
.end method

.method public final toString()Ljava/lang/String;
    .locals 5

    const/4 v4, 0x0

    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    const-string v1, "Lat: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move v1, v4

    :goto_0
    iget-object v2, p0, Lnbisdk/go;->jr:[I

    array-length v2, v2

    if-ge v1, v2, :cond_0

    iget-object v2, p0, Lnbisdk/go;->jr:[I

    aget v2, v2, v1

    invoke-virtual {v0, v2}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    move-result-object v2

    const-string v3, " "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_0
    const-string v1, "\n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    const-string v2, "Lon: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move v1, v4

    :goto_1
    iget-object v2, p0, Lnbisdk/go;->js:[I

    array-length v2, v2

    if-ge v1, v2, :cond_1

    iget-object v2, p0, Lnbisdk/go;->js:[I

    aget v2, v2, v1

    invoke-virtual {v0, v2}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    move-result-object v2

    const-string v3, " "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    :cond_1
    const-string v1, "\n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    const-string v2, "Heading: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move v1, v4

    :goto_2
    iget-object v2, p0, Lnbisdk/go;->ju:[D

    array-length v2, v2

    if-ge v1, v2, :cond_2

    iget-object v2, p0, Lnbisdk/go;->ju:[D

    aget-wide v2, v2, v1

    invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuffer;->append(D)Ljava/lang/StringBuffer;

    move-result-object v2

    const-string v3, " "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    :cond_2
    const-string v1, "\n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
